-- GENERATED SPELL FOR [Guard Kahil] --


function spell0_5091(pUnit, Event) --@Defensive Stance,Self--
pUnit:FullCastSpellOnTarget(7164,pUnit)
pUnit:RegisterEvent('Sorts_5091', 579, 1)
end

function Sorts_5091(pUnit, Event)
local choix_sorts_5091 = math.random(0, 0)
if choix_sorts_5091 == 0 then
pUnit:RegisterEvent('spell0_5091', 1, 1)
end
end

function mob5091_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5091', math.random(1500, 3000), 1)
end

function mob5091_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5091_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5091_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5091, 1, 'mob5091_Action')
RegisterUnitEvent(5091, 2, 'mob5091_Leave')
RegisterUnitEvent(5091, 3, 'mob5091_Kill')
RegisterUnitEvent(5091, 4, 'mob5091_Die')
